<?php
/**
*历史上的今天
*
*/
namespace app\index\model;
use \think\Model;
class Weather{

	
     
    function weather()
    {
    $showapi_appid = '41600';
    $showapi_secret = '356e042902294b66b5000f8cf64e069a';
    $base = new BaseModel();
    $paramArr = array(
         'showapi_appid'=> $showapi_appid,
         'appId'=>  $showapi_appid,
         'key'=> $showapi_secret
         //添加其他参数
    );
    $param = $base->createParam($paramArr,$showapi_secret);
    $url = 'http://route.showapi.com/833-1?'.$param; 
    $result = file_get_contents($url);
    $result = json_decode($result);
    return $result;
    }
}